﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.eforceglobal.crux.BusinessFacades;
using com.eforceglobal.crux.DTOs;
using com.eforceglobal.crux.security;

namespace com.eforceglobal.crux.controllers.Administration
{
    public class CurrentUserController
    {
        public List<CompanyInformation> GetCompaniesForUser(int userid)
        {
            ICruxSecurityManager securityManager = CruxSecurityManagerFactory.GetSecurityManager();
            return securityManager.GetCompaniesForUser(userid);
        }
    }
}
